#ifndef GAMEPROCESS_H
#define GAMEPROCESS_H

#include <QVector>
#include "card.h"
#include "carditem.h"

class GameProcess
{
private:
    //Spade黑桃 Heart红桃 Club梅花 Diamond方片
    QString cardColor[4] = {"Spade", "Heart", "Club", "Diamond"};
    // 存放所有卡牌
    QVector<Card> allCards;

public:
    // 我方剩余的牌
    QVector<CardItem*> myCards;

    GameProcess();

    // 是否剩余牌
    bool isLastCards(){ return !allCards.isEmpty(); };
    // 随机取出一张牌, 需要判断是否剩余牌
    Card getOneRandomCard();

    static bool myCmp(CardItem* c1, CardItem* c2){ return c2->getCard() < c1->getCard(); }
};

#endif // GAMEPROCESS_H
